Origin
“The hardest part of collaborative data analysis is not finding the correct statistical model, but getting the data into a form that you can actually work with. This challenge led to the creation of the reshape package which made it easier to work with a variety of input datasets by first converting to a “molten” form which you could then “cast” into the desired form.”
https://hadley.github.io/25-tidyverse-history/?trk=feed_main-feed-card_feed-article-content
https://hadley.github.io/25-tidyverse-history/?trk=feed_main-feed-card_feed-article-content
Each variable must have its own column
Each observation must have its own row
Each value must have its own cell
| Country | 2023 | 2024 | 2025 |
|---|---|---|---|
| India | 600 | 400 | 500 |
| US | 500 | 200 | 400 |
| Country | Year | Number of Cases |
|---|---|---|
| India | 2023 | 600 |
| India | 2024 | 400 |
| India | 2025 | 500 |
| US | 2023 | 500 |
| US | 2024 | 200 |
| US | 2025 | 400 |